package main

import (
	"fmt"
	"go_code/20220714gotest/daily-test/202209/09/encapsulateExercise/model"
)

func main() {
	a := model.NewAccount("icbc", 2000000.00, "888888")
	if a == nil {
		fmt.Println("创建失败")
	} else {
		fmt.Println("a账号=", a.GetAccountNo(), "a余额=", a.GetBalance(), "apwd=", a.GetPwd())
		a.SetAccountNo("ny888")
		a.SetBalance(90000000.00)
		a.SetPwd("!@#txw")
		fmt.Println("a账号=", a.GetAccountNo(), "a余额=", a.GetBalance(), "apwd=", a.GetPwd())
	}
}
